package com.haoyun.common.constant;

/**
 * @author lengleng
 * @date 2017/10/29
 */
public interface CommonConstant {
    /**
     * token请求头名称
     */
    String REQ_HEADER = "Authorization";

    /**
     * token分割符
     */
    String TOKEN_SPLIT = "Bearer ";

    /**
     * client分隔符
     */
    String CLIENT_SPLIT = "Basic ";

    /**
     * jwt签名
     */
    String SIGN_KEY = "MIRAGE";
    /**
     * 树根节点
     */
    Long TREE_ROOT = 0L;
    /**
     * 删除、失效
     */
    Integer STATUS_DEL = 1;
    /**
     * 正常
     */
    Integer STATUS_NORMAL = 0;

    /**
     * 过期
     */
    Integer STATUS_EXPIRE = 2;

    /**
     * 锁定
     */
    Integer STATUS_LOCK = 3;

    /**
     * 密码过期
     */
    Integer STATUS_PASSWORD_EXPIRE = 4;



    /**
     * 菜单
     */
    Integer MENU = 0;

    /**
     * 按钮
     */
    Integer BUTTON = 1;

    /**
     * 编码
     */
    String UTF8 = "UTF-8";

    /**
     * JSON 资源
     */
    String CONTENT_TYPE = "application/json; charset=utf-8";

    /**
     * 阿里大鱼
     */
    String ALIYUN_SMS = "aliyun_sms";
}
